package com.itheima.oop.d5_javabean;

/**
 * 实体类 存储数据
 * 满足2条件
 * 1.所有成员变量必须私有 get set方法
 * 2.必须有一个无参构造器
 *
 */
public class Student {
    private String name;
    private double score;

    //无参构造器
    public Student(){

    }

//get set 方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }



}
